[virtual=x86,bios +compress] .bootstrap = {
    startup-bios
    PATH=:/proc/boot:/usr/bin:/bin:/usr/photon/bin LD_LIBRARY_PATH=:/proc/boot:/usr/lib:/lib:/lib/dll	PHOTON_PATH=/usr/photon	procnto -v
}
[+script] .script = {
    procmgr_symlink ../../proc/boot/libc.so.2 /usr/lib/ldqnx.so.2

    devc-con -n2
    waitfor /dev/con1
#	reopen /dev/con2
#	[+session] ksh
    reopen /dev/con1
     
    display_msg .
    display_msg Welcome to QNX Neutrino 6.3 on an x86 platform with Photon

    slogger &
    pipe &

    display_msg Starting PCI
    pci-bios
    waitfor /dev/pci 10

#	display_msg Starting EIDE
#	devb-eide &
	
	display_msg Starting DiskOnChip
	devb-doc &	
	
	waitfor /dev/hd0t79 10
	mount /dev/hd0t79 /fs/doc

    SYSNAME=nto
    TERM=qansi
    PHOTON=/dev/photon
    PATH=:/proc/boot:/usr/bin:/bin:/usr/photon/bin
    LD_LIBRARY_PATH=:/proc/boot:/usr/lib:/lib:/lib/dll:/fs/doc/lib
    PHOTON_PATH=/usr/photon
    PHOTON=/dev/photon
    PHFONT=/dev/phfont
    HOME=/

	display_msg Starting io-net
	io-net -drtl -pqnet host=geodepc &	

#	display_msg Starting Serial
#	devc-ser8250 -e &
#	reopen /dev/ser1

    display_msg Starting Photon
    Photon
    waitfor /dev/photon 10

    display_msg Starting Input
    devi-hirun kbd kbddev ps2 mousedev &

    display_msg Starting Graphics
	io-graphics -dvesabios photon,xres=1024,yres=768,bitpp=16,refresh=60 -pphoton
#	io-graphics -dtnt vid=0x10de,did=0x2c,index=0,photon,xres=1280,yres=1024,bitpp=32,refresh=60 -pphoton hwcursor 
#	io-graphics -dgeode vid=0x1078,did=0x104,index=0,photon,xres=1024,yres=768,bitpp=16 -pphoton hwcursor 
    waitfor /dev/phfont 10

    display_msg Starting Window Manager
    pwm &
    bkgdmgr &
    devc-pty &

    display_msg Starting Terminal
	pterm /bin/sh
	
	[+session] ksh	
}

[type=link] /bin/sh = /proc/boot/ksh
#[type=link] /dev/console = /dev/ser1
[type=link] /dev/console = /dev/con1
[type=link] /tmp = /dev/shmem

# standard libs
libc.so
libm.so
libcam.so
cam-disk.so
cam-cdrom.so
io-blk.so
fs-qnx4.so

# photon libs
libph.so
libAp.so
libphexlib.so
libphimg.so
libjpeg.so
pi_io_jpeg.so

# io-graphics libs
gri-photon.so
libphrender.so
libgri.so
libdisputil.so
libffb.so

# graphics driver
devg-vesabios.so
#devg-tnt.so
#devg-geode.so
/etc/system/config/crtc-settings = /etc/system/config/crtc-settings
/usr/photon/palette/default.pal = /usr/photon/palette/default.pal

# font libs
/lib/dll/font/ttfFFcore.so = /lib/dll/font/ttfFFcore.so
/lib/dll/font/PHFcore.so = /lib/dll/font/PHFcore.so
libfontharnessutils.so
libfontutils.so
libblkcache.so
libFF-T2K.so
libFF-T2K-cache.so
libFF-T2K-fm.so
libfont.so
phfont.so

# font config
/usr/photon/font_repository/tt2001m_.ttf = /usr/photon/font_repository/tt2001m_.ttf
#/usr/photon/font_repository/tt2009m_.ttf = /usr/photon/font_repository/tt2009m_.ttf
/usr/photon/font_repository/phcursor.phf = /usr/photon/font_repository/phcursor.phf
/usr/photon/font_repository/pcterm12.phf = /usr/photon/font_repository/pcterm12.phf
/usr/photon/font_repository/pcterm14.phf = /usr/photon/font_repository/pcterm14.phf
/usr/photon/font_repository/pcterm20.phf = /usr/photon/font_repository/pcterm20.phf
/usr/photon/font_repository/mappings = /usr/photon/font_repository/mappings
/usr/photon/font_repository/fontopts = /usr/photon/font_repository/fontopts
/usr/photon/font_repository/fontkey = /usr/photon/font_repository/fontkey

/usr/photon/font_repository/fontdir = {
;
; fontdir config file
;
phcursor,.phf,Photon Cursor,0,,E900-E921,Np,32x32,3K
pcterm12,.phf,PC Terminal,12,,0000-00FF,Nf,6x12,13K
pcterm14,.phf,PC Terminal,14,,0000-00FF,Nf,8x14,13K
pcterm20,.phf,PC Terminal,20,,0000-00FF,Nf,10x19,18K
primasansbts,0@tt2001m_.ttf,PrimaSans BT,0,,0020-F002,p,192x170,162K
#primasansmonobts,0@tt2009m_.ttf,PrimaSansMono BT,0,,0020-F002,f,79x170,109K
}

/usr/photon/font_repository/fontext = {
;
; fontext config file
;
#+normal = primasansbts, primasansmonobts, phcursor
+normal = primasansbts, phcursor
}

/usr/photon/font_repository/fontmap = {
;
; fontmap config file
;
term = pcterm
? = primasansbts
}

# input config
/usr/photon/keyboard/en_US_101.kbd = /usr/photon/keyboard/en_US_101.kbd

[data=c]
pci-bios
devc-pty
devc-con
#devc-ser8250
#devb-eide
devb-doc

#devn-rtl.so
#npm-qnet.so
#npm-tcpip.so
io-net

ls
ksh
cat
pipe
pidin
uname
slogger
sloginfo
slay
mount

Photon
io-graphics
devi-hirun
pwm
[+raw] /usr/photon/bin/pterm = pterm
[+raw] /usr/photon/bin/phcalc_sm = phcalc_sm
[+raw] /usr/photon/bin/phshutdown = phshutdown
[+raw] /usr/photon/bin/bkgdmgr = bkgdmgr
[+raw] /usr/photon/bin/pwmopts = pwmopts
[+raw] /usr/photon/bin/phmenu = phmenu

[+raw] /usr/bin/mqc = /usr/lib/mqc/mqc
[+raw] /usr/bin/med = /usr/lib/mqc/med
[+raw] /usr/bin/sin = sin
[+raw] /usr/bin/shutdown = shutdown
[+raw] /usr/photon/bin/psin = psin

/usr/lib/terminfo/q/qansi = /usr/lib/terminfo/q/qansi
/usr/lib/terminfo/q/qansi-g = /usr/lib/terminfo/q/qansi-g
/usr/lib/terminfo/q/qansi-m = /usr/lib/terminfo/q/qansi-m
/usr/lib/terminfo/q/qansi-t = /usr/lib/terminfo/q/qansi-t
/usr/lib/terminfo/q/qansi-w = /usr/lib/terminfo/q/qansi-w
/usr/lib/terminfo/terminfo.src = /usr/lib/terminfo/terminfo.src

# default image for bkgdmgr
[+raw] /usr/share/backdrops/1024x768/default.jpg = /usr/share/backdrops/1024x768/default.jpg

# pwm and bkgdmgr config
/usr/photon/config/wm/wm.cfg = /usr/photon/config/wm/wm.cfg

# The parts of each entry in the wm.menu file must be separated by tabs.
/usr/photon/config/wm/wm.menu = {
=Desktop Menu
Terminal	T	pterm
Calculator	a	phcalc_sm
Photon Sin	S	psin
-4
<	Configure	C	C
Appearance	p	pwmopts
Desktop Menu	D	phmenu
>
-4
Shutdown...	u	phshutdown
}

# allow pterm to save its configuration to RAM, if the user changes it.
[type=link] /.ph/pterm = /dev/shmem

# allow pwm and bkgdmgr to save their configuration to RAM, if the user changes it.
[type=link] /.ph/wm = /dev/shmem
